package com.spring.starter.testAJc;

/**
 * @author tonywang
 * @date 6/15/2018
 */
public class Hello {
    public void foo(){
        System.out.println("执行Ｈｅｌｌｏ中的foo()方法");
    }
    public void addUser(String name, String pass){
        System.out.println("执行Hello类中的addUser()方法用户名:" + name);
    }
}
class World {
    public void bar(){
        System.out.println("执行了World类中的bar()方法");
    }
}

class Test {
    public static void main(String[] args) {
        Hello hello = new Hello();
        hello.foo();
        hello.addUser("Tony","123456");
        World world = new World();
        world.bar();
    }
}